package com.desay.pangoo.itmt.entity.rag;

import com.desay.pangoo.itmt.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

/**
 * 算法端，经过分析后生成的热门问题。
 * @author uids1175
 */

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "rag_hot_problem")
@DynamicInsert
@DynamicUpdate
@EntityListeners(AuditingEntityListener.class)
public class HotProblemEntity extends BaseEntity {

    /**
     * 唯一标识，主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "problem_id",columnDefinition = "bigint  COMMENT '主键'")
    private Long problemId;

    /**
     * 问题的具体描述
     */
    @Column(name = "problem_desc" ,columnDefinition = "varchar(1024)  COMMENT '问题的具体描述'")
    private String desc;

    /**
     * 热度值
     */
    @Column(name = "problem_hot",columnDefinition = "int  COMMENT '热度值'")
    private Integer hot;
}
